<?php


$conn = mysql_connect("sinadb.cupfdqlhvurq.us-east-1.rds.amazonaws.com","eric","038613206");

if (!$conn) {
    die('Could not connect: ' . mysql_error());
}

$db_selected = mysql_select_db("sinadb",$conn);


	//查一下有没有这个UID存在，有的话，UPDATE.
	$sql = "select * from user_poiid ";
	$rel = mysql_query($sql,$conn);
	while($row=mysql_fetch_row($rel)){
    	print_r($row);
        echo "<hr/>";
    }
	

mysql_close($conn);



?>